/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package inscripciones.modelo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 *
 * @author Dianita
 */

@Entity
public class Pago implements Serializable{

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Integer id;
   
    private Integer porcentajeIva;
    
    @OneToMany(mappedBy="forma", cascade= CascadeType.ALL, orphanRemoval=true)
    private List<Abono> abonos = new ArrayList<Abono>();


    public List<Abono> getAbonos() {
        return abonos;
    }

    public void setAbonos(List<Abono> abonos) {
        this.abonos = abonos;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getIva() {
        return porcentajeIva;
    }

    public void setIva(Integer iva) {
        this.porcentajeIva = iva;
    }

    public Integer getPorcentajeIva() {
        return porcentajeIva;
    }

    public void setPorcentajeIva(Integer porcentajeIva) {
        this.porcentajeIva = porcentajeIva;
    }

}
